import java.util.Arrays;

public class Task {

    public static void main(String[] args) {
        Student[] students = new Student[]{
            new Student("Bob", 15),
            new Student("Alice", 18),
            new Student("Tom", 12)
        };
        
        // 给数组排序（根据年龄正序排列）
        Arrays.sort(students);
        for (Student student : students) {
            System.out.println(student);
        }
    }
    
}